import request from '@/http'
import config from '@/http/config'

/*
 * 个人标注-获取标注位置列表
 * method：get
 * */
const apiPersonalLables = `${config.account.ip}/api/accountmgt`

export const getMarkingPositionList = () => request({
  url: `${apiPersonalLables}/personalLables/markingPositionList`,
  method: 'get'
})
/*
 * 个人标注-获取自定义主题表
 * method：get
 * */
export const getCustomThemeList = () => request({
  url: `${apiPersonalLables}/personalLables/customThemeList`,
  method: 'get'
})

/*
 * 个人标注-添加个人标注
 * method：post
 * */
export const addPersonalLables = (data) => request({
  url: `${apiPersonalLables}/personalLables/add`,
  method: 'post',
  data
})
/*
 * 个人标注-新建自定义主题分类
 *参数：biaozhuflmc-标准分类名称 beizhu-备注
 * method：post
 * */
export const createClassifiedTopics = (data) => request({
    url: `${apiPersonalLables}/personalLables/createClassifiedTopics`,
    method: 'post',
    data
 })
